package model02;

import java.util.Scanner;

public class DienThoai extends ThietBi {
	private boolean is3G;
	
	//nhap thong tin dien thoai di dong
	public void nhapThongTin() {
		Scanner s = new Scanner(System.in);
		
		super.nhapThongTin();
		
		System.out.print("Dien thoai nay co ho tro 3G khong?");
		is3G = s.nextBoolean();
		isDT3G(is3G);
	}
	
	//xuat thong tin dien thoai
	public void xuatThongTin() {
		super.xuatThongTin();
		System.out.println("Ho tro 3G: " + is3G);
	}
	
	//ham kiem tra dien thoai co ho tro 3G hay khong
	public boolean isDT3G(boolean is3g) {
		if(is3g == true)
			return true;
		return false;
	}

	public boolean isIs3G() {
		return is3G;
	}

	public void setIs3G(boolean is3G) {
		this.is3G = is3G;
	}
}
